import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo
import java.awt.Color;


public class Level extends Actor
{
    private GreenfootImage levelImg;
    private int level=1;

    public Level()
    {
        levelImg = new GreenfootImage(200, 30);
        setImage(levelImg);
        draw();
    }

    public void setLevel(int lv)  
    { 
        level = lv;
        draw();
    }
    
    public void draw()
    {
        levelImg.clear();
        levelImg.setColor(Color.RED);
        levelImg.drawString("Level: " + level, 4, 22);  
    }
    
    public int getLevel() { return level; }
}
